// 引入全局mixin
import mixin from './libs/mixin/mixin.js'
// 规则检验
import * as verify from './libs/fn/verify.js'
const $m = {
	mixin,
	verify,
}

// $u挂载到uni对象上
uni.$m = $m

import digit from './libs/fn/digit.js'
import fn from './libs/fn/tools.js'
const tool = {
	...digit,
	...fn,
}



const install = (Vue) => {
	for (let key in tool) {
		Vue.prototype[key] = tool[key]
	}
	Vue.prototype.$m = $m
	Vue.mixin(mixin)
}

export default {
	install
}